package icu.twtool.ui.style

import androidx.compose.material.ButtonDefaults
import androidx.compose.material.ContentAlpha
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color

/**
 * @author Wen
 * @since 2022-11-02
 */
object MyColors {

    val PrimaryBackground = Color(28, 30, 46)

    val SecondaryBackground = Color(240, 240, 250)

    val TertiaryBackground = Color(234, 234, 245)

    val OnPrimaryBackground = Color(240, 240, 250)

    val OnSecondaryBackground = Color(28, 30, 46)

    val OnTertiaryBackground = Color(20, 20 , 20)

    val Tertiary = Color(165, 105, 189)
    val Error = Color(253, 107, 109)
    val Success = Color(72, 201, 176)

    val TableHeaderBackground = Color(44, 62, 80)
    val TableHeaderContent = Color(255, 255, 255)

    @Composable
    @Suppress("FunctionName")
    fun ButtonPrimary() = ButtonDefaults.buttonColors(
        PrimaryBackground,
        OnPrimaryBackground,
        PrimaryBackground.copy(ContentAlpha.disabled),
        OnPrimaryBackground.copy(ContentAlpha.disabled),
    )
}